function t396_init(t){var e=document.getElementById("rec"+t),i=e?e.querySelector(".t396"):null,o=e?e.querySelector(".t396__artboard"):null;if(o){t396_initTNobj(t,o),t396__initOnlyScalable();var n="",r=t396_detectResolution(t),a=document.getElementById("allrecords"),l=a&&"edit"===a.getAttribute("data-tilda-mode");void 0===window.tn.isEditMode&&(window.tn.isEditMode=l),t396_switchResolution(t,r);var d="window"===t396_ab__getFieldValue(o,"upscale");if(t396__setGlobalScaleVariables(t,r,d),t396_updateTNobj(t),t396_artboard_build(n,t),window.addEventListener("load",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o);var t=o?window.getComputedStyle(o).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&o&&o.addEventListener("scroll",t_throttle((function(){var t=a?a.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}),500)),""!==window.location.hash&&"visible"===t&&(o&&(o.style.overflow="hidden"),setTimeout((function(){o&&(o.style.overflow="visible")}),1))})),window.tildaMembers&&"MutationObserver"in window){var _=new MutationObserver((function(e){e.forEach((function(e){"attributes"===e.type&&"class"===e.attributeName&&e.target.classList.contains("tlk-courses_page")&&(t396_doResize(t,!0),_.disconnect())}))}));_.observe(document.body,{attributes:!0})}document.querySelector(".t830")&&t_onReady((function(){var e,i;["t830__allrecords_padd","t830__allrecords_padd-small"].some((function(t){return a.classList.contains(t)}))?t396_doResize(t,!0):a.addEventListener("allRecPaddingInit",(function(){t396_doResize(t,!0)}))})),e&&i&&o&&"yes"===e.getAttribute("data-connect-with-tab")&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)}));var s="hug"===o.getAttribute("data-artboard-heightmode");if(s){t396__updateAutoHeight(o),setInterval((function(){t396__updateAutoHeight(o)}),3e3);var u=o.getElementsByTagName("img");Array.from(u).forEach((function(t){t.onload=function(){t396__updateAutoHeight(o)}}));var c={subtree:!0,characterData:!0,characterDataOldValue:!0},w,g;new MutationObserver((function t(){t396__updateAutoHeight(o)})).observe(o,c)}setTimeout((function(){e&&e.closest("#allrecordstable")&&i&&o&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)}))}),1e3);var f=!!document.querySelector(".t635__textholder");e&&f&&i&&o&&i.addEventListener("animationInited",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)})),e&&document.querySelector(".t431")&&i&&o&&t_onReady((function(){setTimeout((function(){t396_doResize(t,!0)}))})),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&i&&i.classList.add("t396_safari"),d&&!l&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),l||"y"!==t396_ab__getFieldValue(o,"fixed-need-js")||t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(o)})),t396__processAbsoluteArtBoard(o),t396__processTopShift(o,t,!1),window.t396__isMobile||s||t396__removeInlineHeight([o,o.querySelector(".t396__carrier"),o.querySelector(".t396__filter")])}}window.t396__isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.userAgent.indexOf("Instagram")>-1,window.t396__isIPad="ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit"),window.t396__isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),window.t396__isTouchDevice="ontouchend"in document,window.t396__isInAppBrowser=/WebView|(iPhone|iPod|iPad)(?!.*Safari)/gi.test(navigator.userAgent),window.t396__isFacebookMessengerInApp=/FBAN|FBAV/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,window.t396__isInstagramInApp=/\bInstagram/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,t_onReady(t396__globalInit);var t396_waitForFinalEvent=function(){var t={};return function(e,i,o){var n=o||"Don't call this twice without a uniqueId";t[n]&&clearTimeout(t[n]),t[n]=setTimeout(e,i)}}();function t396__initSafariToolbarTracking(){window.t396__isMobile&&window.t396__isSafari&&"visualViewport"in window&&window.visualViewport.addEventListener("resize",(function(){t396_waitForFinalEvent((function(){var t;document.querySelectorAll(".t1093 .t-popup_show .t396__artboard").forEach((function(t){var e=t.getAttribute("data-artboard-recid");e&&t396_doResize(e)}))}),500)}))}function t396__getWindowHeight(){return"visualViewport"in window&&window.t396__isMobile&&window.t396__isSafari?window.visualViewport.height:document.documentElement.clientHeight}function t396__removeInlineHeight(t){t.filter(Boolean).forEach((function(t){t&&(t.style.height="")}))}function t396__globalInit(){t396__isAllZeroBlocksRendered((function(){t396__applyFixesForAllElements(),t396__initSafariToolbarTracking(),window.addEventListener("resize",t396__onResize),window.addEventListener("orientationchange",t396__onOrientationChange)}))}function t396__onResize(){t396_waitForFinalEvent((function(){var t=t396__getAxisXPadding(),e=document.documentElement.clientWidth!==window.tn.window_width,i=t396__getBlockEditorWidth();window.tn.window_width=i||document.documentElement.clientWidth,t&&(window.tn.window_width-=t),window.tn.window_height=t396__getWindowHeight(),t396__getZeroBlocks().forEach((function(t){var i=t.artboard,o=t.record;if(i.classList.add("t396_resizechange"),window.t396__isMobile||window.t396__isTouchDevice){if(e){if(!o)return;if(!t396_isBlockVisible(o))return;t396_doResize(o.id.replace("rec","")),i.classList.remove("t396_resizechange")}}else{if(!o)return;if(!t396_isBlockVisible(o))return;t396_doResize(o.id.replace("rec","")),i.classList.remove("t396_resizechange")}}))}),500,"global_resize_zero_unique_id")}function t396__onOrientationChange(){t396_waitForFinalEvent((function(){var t=t396__getBlockEditorWidth();window.tn.window_width=t||document.documentElement.clientWidth,window.tn.window_height=document.documentElement.clientHeight,t396__getZeroBlocks().forEach((function(t){var e=t.record;e&&t396_isBlockVisible(e)&&t396_doResize(e.id.replace("rec",""))}))}),600,"global_orientationchange_zero_unique_id")}function t396_isOnlyScalableBrowser(){return window.isOnlyScalable}function t396__initOnlyScalable(){if(void 0===window.isOnlyScalable){var t=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),e=t?parseInt(t[1],10):126,i=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./),o=i&&parseInt(i[1],10)||0;window.isOnlyScalable=e<126,window.shouldUseScaleFactor=!window.isOnlyScalable&&!t&&o<=127}}function t396__setGlobalScaleVariables(t,e,i){if(!window.tn.window_width){var o=t396__getBlockEditorWidth();window.tn.window_width=o||document.documentElement.clientWidth}var n="ab"+t,r,a=document.getElementById("rec"+t).parentNode.classList.contains("t-popup__container"),l=i?parseFloat((window.tn.window_width/e).toFixed(3)):1,d=i?parseFloat((document.documentElement.clientWidth/e).toFixed(3)):1;window.tn[n].scaleFactor=a?d:l,window.tn_scale_factor=l;var _=document.getElementById("rec"+t);_&&!window.tn.isEditMode&&_.style.setProperty("--zoom",a?d.toString():l.toString())}function t396__processTopShift(t,e,i){"function"!=typeof window.t396__updateTopShift||"y"!==t396_ab__getFieldValue(t,"shift-processed")&&"y"!==t396_ab__getFieldValue(t,"fixed-shift")||window.t396__updateTopShift(e,i)}function t396_doResize(t,e){if(e){var i=t396__getAxisXPadding(),o=t396__getBlockEditorWidth();window.tn.window_width=o||document.documentElement.clientWidth,i&&(window.tn.window_width-=i)}var n=t396_isOnlyScalableBrowser(),r=document.getElementById("rec"+t),a=document.getElementById("allrecords"),l=t396_detectResolution(t),d=r?r.querySelector(".t396__scale-style"):null;if(t396__setScaleFactorForElements(t),t396_removeElementFromDOM(d),n){var _=r?r.querySelectorAll(".tn-molecule, .tn-atom"):[];Array.prototype.forEach.call(_,(function(t){if(!t.classList.contains("tn-atom")||!t.closest(".tn-molecule")){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)}}))}else{var s=r?r.querySelectorAll(".t396__elem, .t396__group"):[];Array.prototype.forEach.call(s,(function(t){t.style.zoom="";var e=t.querySelector(".tn-atom");e&&(e.style.transformOrigin="",e.style.fontSize="",e.style.webkitTextSizeAdjust="")}))}t396_switchResolution(t,l);var u=r?r.querySelector(".t396__artboard"):null,c="window"===t396_ab__getFieldValue(u,"upscale");t396__setGlobalScaleVariables(t,l,c),t396_updateTNobj(t),t396_ab__renderView(u);var w=a?a.getAttribute("data-tilda-mode"):"";c&&"edit"!==w&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),"edit"!==w&&"y"===t396_ab__getFieldValue(u,"fixed-need-js")&&t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(u)})),t396__processAbsoluteArtBoard(u),t396__processTopShift(u,t,!0),t396_allelems__renderView(u),t396_allgroups__renderView(u),t396__applyFixesForAllElements(),t396__updateAutoHeight(u),u&&u.dispatchEvent(new CustomEvent("artBoardResized"));var g="hug"===u.getAttribute("data-artboard-heightmode");u&&!g&&(window.t396__isMobile||t396__removeInlineHeight([u,u.querySelector(".t396__carrier"),u.querySelector(".t396__filter")]))}function t396__updateAutoHeight(t){var e;if("hug"===t.getAttribute("data-artboard-heightmode")){var i=t396__getAutoHeight(t),o;if(i!==t.offsetHeight){var n,r="ab"+t.getAttribute("data-artboard-recid"),a=window.tn[r].curResolution,l;a===window.tn[r].curResolution_max?t.setAttribute("data-artboard-height",i):t.setAttribute("data-artboard-height-res-"+a,i),t396_ab__renderView(t)}}}function t396__getAutoHeight(t){var e,i;if(t.classList.contains("t396__artboard-flex")){var o=t.style.height;t.style.height="auto",e=t.offsetHeight,t.style.height=o}else{var n=t.querySelectorAll(".tn-group, .tn-elem");e=Array.from(n).reduce((function(e,i){var o=t396_core__getFieldValue(i,"axisy"),n=t396_core__getFieldValue(i,"topunits"),r=t396_core__getFieldValue(i,"heightunits");if("%"===n||"%"===r||"bottom"===o||"center"===o)return e;var a=i.offsetTop+i.offsetHeight,l,d,_;"window"===t396_ab__getFieldValue(t,"upscale")&&(a*=t396__getCurrentScaleFactor(t.getAttribute("data-artboard-recid")));return a>e?a:e}),-1/0)}return e===-1/0?0:e}function t396__processAbsoluteArtBoard(t){if(t){var e=t396_ab__getFieldValue(t,"pos");if("fixed"!==e){var i="t396__artboard-fixed-no-bg";if("absolute"===e){var o=getComputedStyle(t),n=t.querySelector(".t396__filter"),r=!n||"none"===getComputedStyle(n).backgroundImage,a,l="rgba(0, 0, 0, 0)"===o.backgroundColor&&"none"===o.backgroundImage&&r?"add":"remove";t.classList[l](i)}else t.classList.remove(i)}}}function t396_detectResolution(t){if(!t)return null;var e="ab"+t,i=window.innerWidth,o;if(window.t396__isMobile||window.t396__isIPad||window.t396__isSafari){var n=t396__getBlockEditorWidth();n?window.tn.window_width=n:window.tn.window_width||(window.tn.window_width=document.documentElement.clientWidth),i=window.tn.window_width}return window.tn[e].screens.forEach((function(t){i>=t&&(o=t)})),void 0===o&&(o=window.tn[e].screens[0]),o}function t396_initTNobj(t,e){e&&(void 0===window.tn?(window.tn={},window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"],t396_setScreensTNobj(t,e)):t396_setScreensTNobj(t,e))}function t396_setScreensTNobj(t,e){var i="ab"+t;window.tn[i]={},window.tn[i].screens=[];var o=e.getAttribute("data-artboard-screens");o?(o=o.split(",")).forEach((function(t){window.tn[i].screens.push(parseInt(t,10))})):window.tn[i].screens=[320,480,640,960,1200]}function t396__getAxisXPadding(){var t=document.getElementById("allrecords"),e=Boolean(window.tildaMembers)||"allrecords"===window.zero_window_width_hook,i,o;return t&&e&&[document.body,t].reduce((function(t,e){var i=window.getComputedStyle(e).paddingLeft,o=window.getComputedStyle(e).paddingRight;return t+parseInt(i,10)+parseInt(o,10)}),0)||0}function t396_updateTNobj(t){var e=t396__getAxisXPadding();if(!window.tn.window_width){var i=t396__getBlockEditorWidth();window.tn.window_width=i||document.documentElement.clientWidth,e&&(window.tn.window_width-=e)}window.tn.window_height||(window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight);for(var o="ab"+t,n=window.tn[o].screens.slice().reverse(),r=0;r=a)c=0;else switch(t396_ab__getFieldValue(t,"valign")){case"top":default:c=0;break;case"center":c=u?parseFloat(((a-u)/2).toFixed(1)):parseFloat(((a-r)/2).toFixed(1));break;case"bottom":c=u?parseFloat((a-u).toFixed(1)):parseFloat((a-r).toFixed(1));break;case"stretch":c=0,r=a}t.setAttribute("data-artboard-proxy-min-offset-top",c),t.setAttribute("data-artboard-proxy-min-height",r),t.setAttribute("data-artboard-proxy-max-height",a);var g=t.querySelector(".t396__filter"),f=t.querySelector(".t396__carrier"),h;if(o=t396_ab__getFieldValue(t,"height_vh"),o=parseFloat(o),(window.t396__isMobile||window.t396__isIPad)&&o){var m=t396__getWindowHeight()*o/100;t.style.height=m+"px",g&&(g.style.height=m+"px"),f&&(f.style.height=m+"px")}"hug"===t.getAttribute("data-artboard-heightmode")&&!o&&(t.style.height=r+"px",g&&(g.style.height=r+"px"),f&&(f.style.height=r+"px"))}}function t396__getCurrentScaleFactor(t){var e="ab"+t,i;return window.tn&&window.tn[e]&&window.tn[e].scaleFactor||window.tn_scale_factor}function t396__setScaleFactorForElements(t){var e=document.getElementById("rec"+t),i=e?e.querySelector(".t396__artboard"):null;if(i){var o=t396__getCurrentScaleFactor(t),n=i.querySelectorAll(".t396__elem, .tn-group");Array.prototype.forEach.call(n,(function(t){t.scaleFactor=o}))}}function t396_addText(t,e){var i=t396_getEl(e);if(i){var o="top,left,width,height,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",o),t396_elem__renderView(i)}}function t396_addImage(t,e){var i=t396_getEl(e);if(i){var o="img,width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",o),t396_elem__renderView(i);var n=i.querySelector("img");n&&(n.addEventListener("load",(function(){t396_elem__renderViewOneField(i,"top"),n.src&&setTimeout((function(){t396_elem__renderViewOneField(i,"top"),t396__updateAutoHeight(t)}),2e3)})),n.complete&&(t396_elem__renderViewOneField(i,"top"),n.src&&setTimeout((function(){t396_elem__renderViewOneField(i,"top"),t396__updateAutoHeight(t)}),2e3)),n.addEventListener("tuwidget_done",(function(){t396_elem__renderViewOneField(i,"top")})),setTimeout((function(){t396_changeFilterOnSafari(i)})))}}function t396_addShape(t,e){var i=t396_getEl(e);if(i){var o="width,height,top,left,";o+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",o),t396_elem__renderView(i)}}function t396_changeFilterOnSafari(t){var e;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(t396__checkContainBackdropFilter(t)&&"IntersectionObserver"in window)){var i=t.querySelector(".tn-atom"),o;new IntersectionObserver((function(e,i){e.forEach((function(e){if(e.isIntersecting){var o=e.target;i.unobserve(o),t396__processBackdropFilterOnImage(t)}}))})).observe(i)}}function t396__checkContainBackdropFilter(t){if(!t)return!1;var e=window.getComputedStyle(t).webkitBackdropFilter;if(e&&"none"!==e)return!0;var i=t.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper");if(!i)return!1;var o=window.getComputedStyle(i).webkitBackdropFilter;return o&&"none"!==o}function t396__processBackdropFilterOnImage(t){if(t){var e=t.getAttribute("data-animate-sbs-opts"),i=t.getAttribute("data-animate-prx")||t.getAttribute("data-animate-fix"),o=e||i,n=t.classList.contains("t396__elem--backdrop-filter-img-wrappered");o&&n||!o?t396__updateBackdropFilterOnImage(t):t.addEventListener("backdropFilterImgWrappered",(function(){t396__updateBackdropFilterOnImage(t)}))}}function t396__updateBackdropFilterOnImage(t){if(t){var e=t,i=e.querySelector("img"),o=e.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper"),n="";o&&(e=o,n=window.getComputedStyle(e).webkitBackdropFilter||""),e.style.webkitBackdropFilter="none",t396_waitForUploadImg(i,(function(){e.style.webkitBackdropFilter=n}))}}function t396_waitForUploadImg(t,e){if("y"===window.lazy)var i=setTimeout((function(){t.classList.contains("loaded")&&t.clientWidth&&t.src?(e(),clearTimeout(i)):t396_waitForUploadImg(t,e)}),300);else e()}function t396_addButton(t,e){var i=t396_getEl(e);if(!i)return null;var o="top,left,width,height,container,axisx,axisy,caption,leftunits,topunits";return i.setAttribute("data-fields",o),t396_elem__renderView(i),i}function t396_addVideo(t,e){var i=t396_getEl(e);if(i){var o="width,height,top,left,";o+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",o),t396_elem__renderView(i),t_onFuncLoad("t396_initVideo",(function(){t396_initVideo(i)}))}}function t396_addHtml(t,e){var i=t396_getEl(e);if(i){var o="width,height,top,left,";o+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",o),t396_elem__renderView(i)}}function t396_addTooltip(t,e){var i=t396_getEl(e);if(i){var o="width,height,top,left,";o+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition",i.setAttribute("data-fields",o),t396_elem__renderView(i),t_onFuncLoad("t396_initTooltip",(function(){t396_initTooltip(i)}))}}function t396_addForm(t,e,i){var o=t396_getEl(e);if(o){var n="width,top,left,",r;n+="inputs,container,axisx,axisy,widthunits,leftunits,topunits",o.setAttribute("data-fields",n);var a=o.getAttribute("data-elem-id"),l=o.querySelector(".tn-atom__inputs-textarea");l&&(r=l.value),t_onFuncLoad("t_zeroForms__init",(function(){t396_elem__renderView(o),t_zeroForms__init(i,a,r),t396_elem__renderView(o)}))}}function t396_addGallery(t,e,i){var o=t396_getEl(e);if(o){var n="width,height,top,left,";n+="imgs,container,axisx,axisy,widthunits,heightunits,leftunits,topunits",o.setAttribute("data-fields",n),t396_elem__renderView(o);var r=o.getAttribute("data-elem-id");t_onFuncLoad("t_zeroGallery__init",(function(){t_zeroGallery__init(i,r)}))}}function t396_addVector(t,e){var i=t396_getEl(e);if(i){var o="width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",o),t396_elem__renderView(i)}}function t396_elem__getFieldValue(t,e){var i=t396_getEl(t);if(!i)return null;if(i.classList.contains("tn-group"))return t396_group__getFieldValue(i,e);var o=i.closest(".t396__artboard"),n=o.getAttribute("data-artboard-recid"),r="ab"+n,a;void 0===window.tn[r]&&(t396_initTNobj(n,o),t396_switchResolution(n,t396_detectResolution(n)));var l=window.tn[r].curResolution,d=window.tn[r].curResolution_max,_=window.tn[r].screens,s;if(!(s=l===d?i.getAttribute("data-field-"+e+"-value"):i.getAttribute("data-field-"+e+"-res-"+l+"-value"))&&""!==s)for(var u=0;u<_.length;u++){var c=_[u];if(!(c<=l)&&(s=c===d?i.getAttribute("data-field-"+e+"-value"):i.getAttribute("data-field-"+e+"-res-"+c+"-value")))break}return s}function t396_elem__renderView(t){var e=t396_getEl(t),i=e?e.getAttribute("data-fields"):"";i&&(i=i.split(",")).forEach((function(t){t396_elem__renderViewOneField(e,t)}))}function t396_group__renderView(t){var e=t?t.getAttribute("data-fields"):"";e&&(e=e.split(",")).forEach((function(e){var i=t396_group__getFieldValue(t,e);switch(e){case"left":i=t396_elem__convertPosition__Local__toAbsolute(t,e,i),t.style.left=parseFloat(i).toFixed(1)+"px";break;case"top":i=t396_elem__convertPosition__Local__toAbsolute(t,e,i),t.style.top=parseFloat(i).toFixed(1)+"px";break;case"container":t396_elem__renderViewOneField(t,"left"),t396_elem__renderViewOneField(t,"top")}}))}function t396_elem__renderViewOneField(t,e){var i=t396_getEl(t);if(i){var o=document.getElementById("allrecords"),n=o?o.getAttribute("data-tilda-mode"):"",r,a="window"===t396_ab__getFieldValue(i.closest(".t396__artboard"),"upscale");if("yes"!==i.getAttribute("data-scale-off")||!a||"edit"===n){var l=t396_elem__getFieldValue(i,e),d,_,s=["fill","hug"],u="gallery"===i.getAttribute("data-elem-type");switch(e){case"left":l=t396_elem__convertPosition__Local__toAbsolute(i,e,l),l=u?t396__zoomifyValue(i,l):parseFloat(l).toFixed(1)+"px",i.style.left=l;break;case"top":l=t396_elem__convertPosition__Local__toAbsolute(i,e,l),l=u?t396__zoomifyValue(i,l):parseFloat(l).toFixed(1)+"px",i.style.top=l;break;case"width":_=i.getAttribute("data-elem-type");var c=t396_elem__getFieldValue(i,"widthmode");if("text"===_&&"autowidth"===t396_elem__getFieldValue(i,"textfit"))return void(i.style.width="auto");if(s.includes(c))return void(i.style.width="");switch(l=t396_elem__getWidth(i,l),i.style.width=parseFloat(l).toFixed(1)+"px",_){case"tooltip":var w=i.querySelectorAll(".tn-atom__pin-icon");Array.prototype.forEach.call(w,(function(t){var e=parseFloat(l).toFixed(1)+"px";t.style.width=e,t.style.height=e})),i.style.height=parseInt(l).toFixed(1)+"px";break;case"gallery":t396_elem__setGallerySize(i,"width",l,u)}break;case"height":_=i.getAttribute("data-elem-type");var g=t396_elem__getFieldValue(i,"heightmode"),f=t396_elem__getFieldValue(i,"textfit");if("text"===_&&(["autowidth","autoheight"].includes(f)||!f))return void(i.style.height="auto");if(s.includes(g)&&"tooltip"!==_)return void(i.style.height="");if("tooltip"===_)return;l=t396_elem__getHeight(i,l),i.style.height=parseFloat(l).toFixed(1)+"px","gallery"===_&&t396_elem__setGallerySize(i,"height",l);break;case"container":t396_elem__renderViewOneField(i,"left"),t396_elem__renderViewOneField(i,"top");break;case"inputs":var h=i.querySelector(".tn-atom__inputs-textarea");l=h?h.value:"";try{window.t_zeroForms__renderForm(i,l)}catch(m){}}"width"!==e&&"height"!==e&&"fontsize"!==e&&"fontfamily"!==e&&"letterspacing"!==e&&"fontweight"!==e&&"img"!==e||(t396_elem__renderViewOneField(i,"left"),t396_elem__renderViewOneField(i,"top"))}}}function t396_elem__setGallerySize(t,e,i){var o=i,n=t396_elem__getFieldValue(t,"borderwidth"),r=t396_elem__getFieldValue(t,"borderstyle");r&&n&&"none"!==r||(n=0),o-=2*n;var a=Math.round(parseFloat(o))+"px";a=t396__zoomifyValue(t,a);var l=t.querySelector(".t-slds__main"),d=t.querySelectorAll(".tn-atom__slds-img");t.style[e]=a,l&&(l.style[e]=a),Array.prototype.forEach.call(d,(function(t){t.style[e]=a}))}function t396_elem__convertPosition__Local__toAbsolute(t,e,i){var o=t396_getEl(t);if(!o)return null;var n=o.closest(".t396__artboard"),r=n.getAttribute("data-artboard-recid"),a="ab"+r,l=t396_ab__getFieldValue(n,"valign"),d="window"===t396_ab__getFieldValue(n,"upscale"),_=document.getElementById("allrecords"),s,u="edit"===(_?_.getAttribute("data-tilda-mode"):""),c=t396_isOnlyScalableBrowser(),w=!u&&d&&c,g=!u&&d&&!c,f=t396_elem__getFieldValue(o,"axisy"),h=t396_elem__getFieldValue(o,"axisx"),m=t396_elem__getFieldValue(o,"container"),p=o.classList.contains("tn-group")&&"physical"===t396_group__getFieldValue(o,"type"),b=o.parentNode.closest(".tn-group"),v="physical"===t396_group__getFieldValue(b,"type");p&&(m=m||"grid");var y=parseInt(i),F,A,x,V,E,S,k,z=t396__getCurrentScaleFactor(r);switch(e){case"left":var B;if(F="grid"===m?"grid":"window",A="grid"===m?window.tn[a].grid_offset_left:0,E="grid"===m?window.tn[a].grid_width:window.tn.window_width,"%"===t396_elem__getFieldValue(o,"leftunits")&&(y=t396_roundFloat(E*y/100)),v){var I=parseInt(t396_group__getFieldValue(b,"left"),10),L;"%"===t396_group__getFieldValue(b,"leftunits")&&(I=t396_roundFloat(E*I/100)),y-=I;break}!u&&d?"grid"===m&&c&&(y*=z):y=A+y,"center"===h&&(V=t396_elem__getWidth(o),w&&"window"!==F&&(E*=z,V*=z),y=E/2-V/2+y),"right"===h&&(V=t396_elem__getWidth(o),w&&"window"!==F&&(E*=z,V*=z),y=E-V+y),w&&"window"!==F&&(y+=((V=t396_elem__getWidth(o))*z-V)/2);break;case"top":var O=o.closest(".t396__artboard"),T=O?O.getAttribute("data-artboard-proxy-min-offset-top"):"0",R=O?O.getAttribute("data-artboard-proxy-min-height"):"0",H=O?O.getAttribute("data-artboard-proxy-max-height"):"0",q=function t(e){var i=t396_elem__getHeight(e);if(e&&"image"===e.getAttribute("data-elem-type")){var o=t396_elem__getWidth(e),n=t396_elem__getFieldValue(e,"filewidth"),r=t396_elem__getFieldValue(e,"fileheight"),a;if(n&&r)i=o/(parseInt(n)/parseInt(r))}return i},M;if(F="grid"===m?"grid":"window",x="grid"===m?parseFloat(T):0,k="grid"===m?parseFloat(R):parseFloat(H),"%"===t396_elem__getFieldValue(o,"topunits")&&(y=k*(y/100)),v){var W=parseInt(t396_group__getFieldValue(b,"top"),10),C;"%"===t396_group__getFieldValue(b,"topunits")&&(W=t396_roundFloat(k*W/100)),y-=W;break}w&&"window"!==F&&(y*=z),g&&"window"!==F&&(x="stretch"===l?0:x/z),y=x+y;var P=t396_ab__getFieldValue(O,"height_vh"),N=t396_ab__getFieldValue(O,"height"),j=t396_ab__getHeight(O),G;if(d&&!u&&P&&(G=parseInt(N,10)*z),"center"===f&&(S=q(o),w&&"window"!==F&&("stretch"!==l?k*=z:k=G?G>j?G:j:O.clientHeight,S*=z),u||!d||c||"window"===F||"stretch"!==l||(k=G?G>j?G:j:O.clientHeight,k/=z),y=k/2-S/2+y),"bottom"===f&&(S=q(o),w&&"window"!==F&&("stretch"!==l?k*=z:k=G?G>j?G:j:O.clientHeight,S*=z),u||!d||c||"window"===F||"stretch"!==l||(k=G?G>j?G:j:O.clientHeight,k/=z),y=k-S+y),w&&"window"!==F){var D=((S=q(o))*z-S)/2;y+=D=Math.round(D)}}return y}function t396_elem_findFirstLevelParentGroup(t){for(var e=t.closest(".t396__group");e;){var i=e.parentElement.closest(".t396__group");if(!i)break;e=i}return e}function t396_ab__getFieldValue(t,e){if(!t)return null;var i,o=t.getAttribute("data-artboard-recid"),n="ab"+o,r;void 0===window.tn[n]&&(t396_initTNobj(o,t),t396_switchResolution(o,t396_detectResolution(o)));var a=window.tn[n].curResolution,l=window.tn[n].curResolution_max,d=window.tn[n].screens;if(null===(i=a===l?t.getAttribute("data-artboard-"+e):t.getAttribute("data-artboard-"+e+"-res-"+a)))for(var _=0;_parseInt(o,10))}function t396__getArtboards(t){var e=document.getElementById("allrecords"),i,o=e&&"edit"===e.getAttribute("data-tilda-mode")?'.record[data-record-type="'+t+'"] .r:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard':'.r[data-record-type="'+t+'"]:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard';return Array.prototype.slice.call(document.querySelectorAll(o))}function t396__getZeroBlocks(){var t=[].concat(t396__getArtboards("396"),t396__getArtboards("121")),e;return t.length?t.map((function(t){return{record:t.closest(".r:not(.t397__off):not(.t395__off):not(.t400__off)"),artboard:t}})).filter((function(t){return t.record})):[]}function t396__getBlockEditorWidth(){if(!window.tn.isEditMode)return 0;var t,e=window.getComputedStyle(document.body).getPropertyValue("--page-view-width");return e&&"100%"!==e?parseInt(e,10):0}function t396__isAllZeroBlocksRendered(t,e){void 0===e&&(e=0);var i=t396__getZeroBlocks(),o=document.getElementById("allrecords"),n=o&&"edit"===o.getAttribute("data-tilda-mode"),r="ready"===document.body.getAttribute("data-ready-status"),a=!1;if(i.length||!n||r){if(!i.length&&n&&r)return e>30?void t():void setTimeout((function(){t396__isAllZeroBlocksRendered(t,e+1)}),100);var l=i.map((function(t){return t.artboard})),d;if(l.every((function(t){return t.classList.contains("rendered")})))t();else{var _=l.filter((function(t){return t.classList.contains("rendered")}));l.forEach((function(e){e.classList.contains("rendered")||e.addEventListener("artBoardRendered",(function(){_.push(e),_.length!==l.length||a||t()}))})),setTimeout((function(){a=!0,_.length!==l.length&&t()}),3e3)}}else{var s=new MutationObserver((function(e){e.forEach((function(e){"ready"===e.target.getAttribute("data-ready-status")&&(s.disconnect(),t396__isAllZeroBlocksRendered(t))}))}));s.observe(document.body,{attributes:!0,attributeFilter:["data-ready-status"]})}}function t396__processElementsTransform(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"image"===e||"shape"===e||"button"===e||"vector"===e){var o=getComputedStyle(t),n;if(o.backdropFilter&&"none"!==o.backdropFilter||o.webkitBackdropFilter&&"none"!==o.webkitBackdropFilter){var r=t.querySelector(".tn-atom"),a=r?window.getComputedStyle(r).transform:"none";"matrix(1, 0, 0, 1, 0, 0)"===a&&(a="none"),"none"!==a&&i.push({element:t,atom:r,atomTransform:a})}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.transform="none",t.element.style.transform=t.atomTransform}))}))}function t396__fixElementsLineHeights(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e;if("text"===t.getAttribute("data-elem-type")){var o=t.querySelector(".tn-atom");if(o){var n=t.closest(".t396__group");if(!n||!n.style.zoom){var r=t.style.zoom,a=o.style.webkitTextSizeAdjust,l=o.style.fontSize;i.push({element:t,atom:o,zoom:r,textSizeAdjust:a,fontSize:l})}}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.removeProperty("line-height"),window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust="none",t.atom.style.fontSize="",t.element.style.zoom="")}))})),e.read((function(){i.forEach((function(t){t.computedLineHeight=parseFloat(window.getComputedStyle(t.atom).lineHeight)}))})),e.write((function(){i.forEach((function(t){var e=t.computedLineHeight;window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust=t.textSizeAdjust,t.atom.style.fontSize=t.fontSize,t.zoom&&(t.element.style.zoom=t.zoom)),e&&!isNaN(e)&&(t.atom.style.lineHeight=Math.round(e)+"px")}))}))}function t396__fixElementsFontSizes(t){var e;if(!window.t396__isMobile&&window.t396__isIPad||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp){var i=t396__initFastDOM(),o=[];i.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"button"===e){var i=t.querySelector(".tn-atom");if(i){var n=t396_elem_findFirstLevelParentGroup(t),r={element:t,atom:i,zoom:1};n&&n.style.zoom&&(r.zoom=parseFloat(n.style.zoom)),1!==r.zoom&&o.push(r)}}}))})),i.write((function(){o.forEach((function(t){t.atom.style.fontSize=""}))})),i.read((function(){o.forEach((function(t){var e=parseFloat(window.getComputedStyle(t.atom).fontSize);t.correctFontSize=e*Math.pow(t.zoom,2)}))})),i.write((function(){o.forEach((function(t){t.atom.style.fontSize=Math.floor(t.correctFontSize)+"px"}))}))}}function t396__initFastDOM(){return{read:function t(e){e()},write:function t(e){e()}}}function t396__applyFixesForAllElements(){var t=document.querySelectorAll(".t396__elem"),e=window.t396__isSafari||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp;document.fonts&&e?document.fonts.ready.then((function(){t396__fixElementsFontSizes(t),t396__fixElementsLineHeights(t)})):t396__fixElementsLineHeights(t),t396__processElementsTransform(t)}function t396__zoomifyValue(t,e){var i,o=e+(String(e).endsWith("px")?"":"px"),n;return t396__isInsideGroupWithZoom(t)?o:"calc("+o+" * var(--zoom, 1))"}function t396__isInsideGroupWithZoom(t){for(var e=t.closest(".t396__group");e;){var i;if(e.style.zoom)return!0;e=null==(i=e.parentElement)?void 0:i.closest(".t396__group")}return!1}